package com.megan.design.pattern.builder;

import lombok.Setter;

/**
 * @author: megan
 * @eMail: meganmail@vip.qq.com
 * @date: 2019/1/10 16:37
 * @version: v1.0
 * @description:
 */
@Setter
public class Coach {

    private CourseBuilder courseBuilder;

    public Course makeCourse(String courseName,String coursePPT,
                             String courseVideo, String courseArticle,String courseQa){
        this.courseBuilder.builderCourseName(courseName);
        this.courseBuilder.builderCourseArticle(courseArticle);
        this.courseBuilder.builderCourseVideo(courseVideo);
        this.courseBuilder.builderCoursePPT(coursePPT);
        this.courseBuilder.builderCourseQa(courseQa);

        return courseBuilder.makeCourse();
    }

}
